﻿<UserControl
    x:Class="Windows_8_MVVM.Controls.BackNavigationControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:behaviors="using:Ebt.Mvvm.Behaviors"
    mc:Ignorable="d"
    d:DesignHeight="90"
    d:DesignWidth="150">
    <UserControl.Resources>
        <Style x:Key="SnappedStyle" TargetType="Button" BasedOn="{StaticResource BackButtonStyle}">
            <Setter Property="Width" Value="38"/>
            <Setter Property="Height" Value="38"/>
            <Setter Property="Margin" Value="16,26,0,0"/>
            <Setter Property="FontSize" Value="46"/>
        </Style>
    </UserControl.Resources>

    <Button VerticalAlignment="Top"
            HorizontalAlignment="Left"
            Command="{Binding RootModel.GoBackCommand}"
            behaviors:OrientationBehavior.LandscapeStyle="{StaticResource BackButtonStyle}"
            behaviors:OrientationBehavior.SnappedStyle="{StaticResource SnappedStyle}"/>

</UserControl>

